import {HTTP} from '../utils/http-p.js'

class LikeModel extends HTTP{
	like(behavior,artId,type){
		let url=behavior=='like'?'like':'like/cancel'
		return this.request({
			url:url,
			method:'POST',
			data:{
				art_id: artId,
        type: type
			}
		})
	}
	getClassicLikeStatus(artID,category){
		return this.request({
			url:`classic/${category}/${artID}/favor`
		})
	}

}
export {LikeModel}